package com.zeropoint.demo.service;

import com.github.pagehelper.PageInfo;
import com.zeropoint.demo.pojo.BasicQuestionnaireInfo;
import com.zeropoint.demo.pojo.FormTotalPor;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface FormTotalService {

    //增加问卷详细信息
    void addFormTotalPor(FormTotalPor totalPor);
    //查询对应权限的基本问卷
    PageInfo<BasicQuestionnaireInfo> queryBasicInfo(Integer currentPage, Integer pageSize) throws NullPointerException;
    //删除问卷信息
    void deleteBasicInfo(int questionnaire_id) throws Exception;
    //查询详细信息 注：id为null则全查
    List<FormTotalPor> queryFormTotalPor(int[] id);

    void exportSheets(HttpServletResponse response,int[] ids);

    //查询并转换成适合导出Excel后的结果
    //List<FormTotalPor> queryForm

}
